package com.mmall.pojo;

import java.math.BigDecimal;
import java.util.Date;

public class OrderItem {
  private Integer id;

  private Long orderNo;

  private Integer productId;

  private String productName;

  private String productImage;

  private BigDecimal currentUnitPrice;

  private Integer quantity;

  private BigDecimal totalPrice;

  private Date createTime;

  private Date updateTime;

  private Integer userId;

  public OrderItem(Integer id, Long orderNo, Integer productId, String productName, String productImage, BigDecimal currentUnitPrice, Integer quantity, BigDecimal totalPrice, Date createTime, Date updateTime, Integer userId) {
    this.id = id;
    this.orderNo = orderNo;
    this.productId = productId;
    this.productName = productName;
    this.productImage = productImage;
    this.currentUnitPrice = currentUnitPrice;
    this.quantity = quantity;
    this.totalPrice = totalPrice;
    this.createTime = createTime;
    this.updateTime = updateTime;
    this.userId = userId;
  }

  public OrderItem() {
    super();
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public Long getOrderNo() {
    return orderNo;
  }

  public void setOrderNo(Long orderNo) {
    this.orderNo = orderNo;
  }

  public Integer getProductId() {
    return productId;
  }

  public void setProductId(Integer productId) {
    this.productId = productId;
  }

  public String getProductName() {
    return productName;
  }

  public void setProductName(String productName) {
    this.productName = productName == null ? null : productName.trim();
  }

  public String getProductImage() {
    return productImage;
  }

  public void setProductImage(String productImage) {
    this.productImage = productImage == null ? null : productImage.trim();
  }

  public BigDecimal getCurrentUnitPrice() {
    return currentUnitPrice;
  }

  public void setCurrentUnitPrice(BigDecimal currentUnitPrice) {
    this.currentUnitPrice = currentUnitPrice;
  }

  public Integer getQuantity() {
    return quantity;
  }

  public void setQuantity(Integer quantity) {
    this.quantity = quantity;
  }

  public BigDecimal getTotalPrice() {
    return totalPrice;
  }

  public void setTotalPrice(BigDecimal totalPrice) {
    this.totalPrice = totalPrice;
  }

  public Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

  public Date getUpdateTime() {
    return updateTime;
  }

  public void setUpdateTime(Date updateTime) {
    this.updateTime = updateTime;
  }

  public Integer getUserId() {
    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }
}